﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewRen.Models
{
    /// <summary>
    /// 浏览记录
    /// </summary>
    public class BrowseRecord
    {
        /// <summary>
        ///  逻辑ID
        /// </summary>
        public int ID { get; set; }

        [ForeignKey("User")]
        public int UserID { get; set; }

        public virtual User User { get; set; }

        /// <summary>
        ///  标题
        /// </summary>
        [StringLength(100)]
        public string Title { get; set; }


        /// <summary>
        ///  访问路径
        /// </summary>
        [StringLength(150)]
        public string URL { get; set; }

        /// <summary>
        /// 访问时间 
        /// </summary>
        public DateTime Time { get; set; }
    }


}